var __global_url = {
	scriptBase: '/scripts/'
};
(function() {

	var __dev = false,
		__scripts = document.scripts,
		__script = __scripts[__scripts.length - 1],
		__boot = __script.getAttribute('data-init'),
		__dir = __script.getAttribute('src');
		
	__dir = __dir.slice(0, __dir.lastIndexOf('/') + 1);
	seajs.config({
		base: __global_url.scriptBase,
		paths: {
			'front': '{cmd_modules}/front'
		},
		alias: {
			//标准库
			'es5-shim': '{modules}/es5-shim.min',
			'json': '{modules}/json2',
			'jquery': '{modules}/jq/jquery',

			//插件
			'jq_cookie': '{modules}/jq/disk/jquery_cookie', 
			'jq_cxselect': '{modules}/jq/disk/jquery_cxselect', 
			'jq_form': '{modules}/jq/disk/jquery_form', 
			'jq_plugins': '{modules}/jq/disk/jquery_plugins', 
			'jq_placeholder': '{modules}/jq/disk/jquery_placeholder', 
			'jq_pwdstr': '{modules}/jq/disk/jquery_passwordStrength', 
			'jq_nicescroll': '{modules}/jq/disk/jquery_nicescroll',
			'jq_hoverIntent': '{modules}/jq/disk/jquery_hoverIntent',  
			'artdialog': 'artDialog/src/dialog', 
			'artdialog_plus': 'artDialog/src/dialog-plus', 
			'template': '{modules}/jq/template', 
			'zex': '{modules}/jq/zex'
		},
		vars: {
			'public': 'public',
			'modules': 'modules',
			'cmd_modules': 'modules/cmd'
		},
		preload: [
			Function.prototype.bind ? '' : 'es5-shim',
			this.JSON ? '' : 'json',
			'jquery',
			'zex'
		],
		map: [
			[/^(.*\.(?:css|js))(.*)$/i, '$1?t=' + (+new Date())]
		],
		debug: false,
		charset: 'utf-8'
	});

})();